<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Application\Controller;


use Zend\View\Model\ViewModel;
use Wistia\Account;
use Zend\Mvc\Controller\AbstractActionController;

class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        
        return new ViewModel();
    }
    
    public function testAction()
    {
        $acc = new Account('e94d5eb71f60970c373e7a0d40822b65a29dc9808aada63fe2716ab53ab463b0');
        //print_r($acc); exit;
        $project = $acc->getProject('3h0l1i4zq9');
        //print_r($project); exit;
        $videos = $project->getMedias();
        print_r($videos);
        return new ViewModel(array('videos'=>$videos));
    }
}
